package com.gitee.swsk33.relationmapping.dao;

import com.gitee.swsk33.relationmapping.dataobject.SpecialWeapon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SpecialWeaponDAO {

	/**
	 * 添加一个专属武器
	 *
	 * @param specialWeapon 添加的专属武器对象
	 * @param figureId      对应的角色id
	 */
	int add(@Param("weapon") SpecialWeapon specialWeapon, @Param("figureId") int figureId);

	/**
	 * 根据角色id查询
	 */
	SpecialWeapon getByFigureId(int figureId);

}